module.exports = {
  entry:{
    index:__dirname+"/src/index.js"
  },
  output:{
    path:__dirname+"/dist",
    filename:"[name].js"
  },
  devServer:{
    contentBase:__dirname+"/dist",
    port:8080
  },
  module:{
    rules:[
      {
        test:/\.css$/,
        use:["style-loader","css-loader"]
      },
      {
        test:/\.scss$/,
        use:["style-loader","css-loader","sass-loader"]
      },
      {
        test:/\.(jpg|png|gif)/,
        // use:["file-loader"]
        use:["url-loader"]
      }
    ]
  }
}
